<template>
    <div>
        <ps></ps>
        <!--<ul>
            <li v-for="(item,index) in list">{{item.title}}------   {{item.con}}</li>
        </ul>-->
    </div>
</template>

<script>
import ps from "./components/ps"
import axios from 'axios'
export default {
    data(){
        return{
            msg:"hello hello",
            list:[]
        }
    },
    components:{
        ps
    },
    created() {//请求数据
        axios.get('/api/list').then((res)=>{
            // console.log(res)
            if(res.data.code ==1){
                this.list = res.data.data
            }
        })
    },
}
</script>
<style>
    div{
        background:red;
        color:yellow;
    }

</style>